﻿using Easy.Services.Entities;
using System.Linq.Expressions;

namespace Easy.Services.Interface
{
    public interface IRolePermissionRelationService
    {
        /// <summary>
        /// 批量新建实体
        /// </summary>
        /// <param name="relations">实体集合</param>
        bool AddBatch(List<RolePermissionRelation> relations);
        
        /// <summary>
        /// 批量更新
        /// </summary>
        /// <param name="relations"></param>
        /// <returns></returns>
        bool UpdateBatch(List<RolePermissionRelation> relations);

        /// <summary>
        /// 获取集合
        /// </summary>
        /// <param name="expression"></param>
        /// <returns></returns>
        List<RolePermissionRelation> GetList(Expression<Func<RolePermissionRelation, bool>> expression = null);


    }
}
